package com.example.chandao.common.easyexcel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.example.chandao.common.easyexcel.domain.SubjectDeviceImport;

import java.util.List;

public class SubjectDeviceImportListener extends AnalysisEventListener<SubjectDeviceImport> {

    List<SubjectDeviceImport> dataList;

    public SubjectDeviceImportListener(List<SubjectDeviceImport> dataList) {
        this.dataList = dataList;
    }


    @Override
    public void invoke(SubjectDeviceImport projSiteImport, AnalysisContext analysisContext) {
        dataList.add(projSiteImport);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

}
